package com.aaa.project.mapper;


import com.aaa.entity.GGGoods;
import com.aaa.entity.GGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author zhangxuhui
 * @since 2023-02-06
 */
@SuppressWarnings("all")
public interface GGoodsMapper extends BaseMapper<GGoods> {

    @Select("select g.gname from g_goods g,o_order o  where g.id =o.goodsid and o.code=#{code} and g.isdeleted=1")
    GGoods find(String code);

    List<Map<String,Object>> findAll(String id);

    Object findAllNum(String id);

    List<Map<String,Object>> findGoods(@Param("uid") String uid,@Param("id") String id);



    Object jiSuan(String id);

//    商家
        List getAllgoodsinfoBybid(@Param("newcurr") Integer newcurr,@Param("size") Integer size,@Param("Bid") String bid, @Param("Goods") GGGoods gGoods);


}
